import { default as request, cloud } from '@/framework/utils/request'

// 可用系统
export function getSystemListApi(params) {
  return request({
    url: cloud.interfacePlatform + '/interfaceServiceManager/getSystemList',
    method: 'get',
    params
  })
}

// 可选的接口
export function getInterfaceListApi(params) {
  return request({
    url: cloud.interfacePlatform + '/homePage/getInterfaceList',
    method: 'get',
    params
  })
}

// 服务空闲情况
export function getInterfaceIdleRatioApi(params) {
  return request({
    url: cloud.interfacePlatform + '/homePage/getInterfaceIdleRatio',
    method: 'get',
    params
  })
}

// 场景调用统计
export function getSceneSuccessNumApi(params) {
  return request({
    url: cloud.interfacePlatform + '/homePage/getSceneSuccessNum',
    method: 'get',
    params
  })
}

// 服务调用排行
export function getServiceCallNumRankingApi(params) {
  return request({
    url: cloud.interfacePlatform + '/homePage/getServiceCallNumRanking',
    method: 'get',
    params
  })
}

// 服务调用统计
export function getServiceCallDateNumApi(params) {
  return request({
    url: cloud.interfacePlatform + '/homePage/getServiceCallDateNum',
    method: 'get',
    params
  })
}
